class TFGeoMap:
    def __init__(self, size):
        self.size = size
        self.elevationMap = [[0 for i in range(size)] for j in range(size)]
        self.terrain = [[0 for i in range(size)] for j in range(size)]
        
    def setElevation(self, elevation, x, y):
        self.elevationMap[x][y] = elevation
        
    def setTerrainAt(self, terrain, x, y):
        self.terrain[x][y] = terrain
        
    def getElevation(self, x, y):
        return self.elevationMap[x][y]
    
    def getTerrainAt(self, x, y):
        return self.terrain[x][y]
    
    def getSize(self):
        return self.size
    
    def __str__(self):
        output = ""
        
        for row in self.elevationMap:
            for cell in row:
                output += str(cell) + " "
                
            output += "\n"
            
        return output